package com.ruoyi.chat.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 好友对象 fh_chat_friend
 *
 * @author ruoyi
 * @date 2024-11-11
 */
@Data
@ApiModel(value = "FhChatFriend",description = "好友对象实体")
public class FhChatFriend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 好友id */
    @ApiModelProperty("好友id")
    @Excel(name = "好友id")
    private Long friendId;

    /** 好友头像 */
    @ApiModelProperty("好友头像")
    @Excel(name = "好友头像")
    private String friendImage;

    /** 好友电话 */
    @ApiModelProperty("好友电话")
    @Excel(name = "好友电话")
    private String friendPhone;

    /** 好友账户名 */
//    @ApiModelProperty("好友账户名")
    @Excel(name = "好友账户名")
    private String friendAccount;

    /** 好友姓名 */
    @ApiModelProperty("好友姓名")
    @Excel(name = "好友姓名")
    private String friendName;

    /** 好友地址 */
    @ApiModelProperty("好友地址")
    @Excel(name = "好友地址")
    private String friendAdress;

    /** 好友亲密度 */
    @Excel(name = "好友亲密度")
    private String friendIntimacy;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFriendId(Long friendId)
    {
        this.friendId = friendId;
    }

    public Long getFriendId()
    {
        return friendId;
    }
    public void setFriendImage(String friendImage)
    {
        this.friendImage = friendImage;
    }

    public String getFriendImage()
    {
        return friendImage;
    }
    public void setFriendPhone(String friendPhone)
    {
        this.friendPhone = friendPhone;
    }

    public String getFriendPhone()
    {
        return friendPhone;
    }
    public void setFriendAccount(String friendAccount)
    {
        this.friendAccount = friendAccount;
    }

    public String getFriendAccount()
    {
        return friendAccount;
    }
    public void setFriendName(String friendName)
    {
        this.friendName = friendName;
    }

    public String getFriendName()
    {
        return friendName;
    }
    public void setFriendAdress(String friendAdress)
    {
        this.friendAdress = friendAdress;
    }

    public String getFriendAdress()
    {
        return friendAdress;
    }
    public void setFriendIntimacy(String friendIntimacy)
    {
        this.friendIntimacy = friendIntimacy;
    }

    public String getFriendIntimacy()
    {
        return friendIntimacy;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setCrateTime(Date crateTime)
    {
        this.crateTime = crateTime;
    }

    public Date getCrateTime()
    {
        return crateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("friendId", getFriendId())
            .append("friendImage", getFriendImage())
            .append("friendPhone", getFriendPhone())
            .append("friendAccount", getFriendAccount())
            .append("friendName", getFriendName())
            .append("friendAdress", getFriendAdress())
            .append("friendIntimacy", getFriendIntimacy())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("crateTime", getCrateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
